package Thread;

public class Demo5 {
    public static void main(String[] args) throws InterruptedException {
        Object locker = new Object();

        System.out.println("等待之前");

        synchronized (locker) {


            locker.wait();
        }


        System.out.println("等待之后");

    }



}
